#include "headfiles.h"

using namespace std;

int main(int argc, char **argv) {
    if (argc != 3) {
        cout << "Usage: " << argv[0] << " file1 file2" << endl;
        return 0;
    }

    NODE *l1 = createLinkedListTmp(argv[1]);
    NODE *l2 = createLinkedListTmp(argv[2]);

    NODE *sum = addTwoNumbers(l1, l2);

    cout << "Linked list1:" << endl;
    printLinkedList(l1);
    cout << endl;

    cout << "Linked list2:" << endl;
    printLinkedList(l2);
    cout << endl;

    cout << "Sum:" << endl;
    printLinkedList(sum);
    cout << endl;

    return 0;
}

